package com.cuhk.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

// 开启Spring Cache缓存使用
@EnableCaching
@MapperScan({"com.cuhk.gulimall.product.dao"})
@SpringBootApplication
// 将当前服务注册到Nacos服务管理中心
@EnableDiscoveryClient
// 开启远程调用服务功能, 允许当前服务调用其他服务提供的接口
@EnableFeignClients(basePackages = "com.cuhk.gulimall.product.feign")
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
